-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding check_binaries command that is distinct from check_packages to lib/common.sh #745
Conversation
Hi @pswica. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, much more flexible to check for this set of binaries rather than insist a specific package is installed and to just leave the package as a suggested way to install the binary.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dougm, pswica The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks a lot for your review @dougm. Can I get an okay-to-test? |
/ok-test-test |
/ok-to-test |
My motivation for this PR comes from this issue here: #684
Specifically, for many prerequisites that the scripts here require, we check whether a distribution-specific package for them exists. So, for example, if I install the
jq
binary from source,common::check_packages jq
would fail even though I'm using Ubuntu simply because I didn't install usingapt
.Requiring that binaries come from specific packages causes problems when the packages that contain those binaries changes, or is different between Linux distribution. It also prevents non-mainstream, and non-Linux-based distros, from using these scripts. I think checking for binaries, directly, is much for flexible.